Encoder : Test refactoring + add test for WebM and Aac encoding + minor changes