moved bytes-to-number to script scope; added wav reader (+tests); splitted decode tests into multiple files