added read wav test
small refactoring