Fix small bugs in Amf0Reader class
Write several tests for Amf0Reader class