add AmfObjectUnitTest
added AmfObject test cases
Rewrite coding style.
Minor update.