make encoder test functions accept encoder-specific options