ADding wav test and fixing minor issues