Add UnitTest for Flash platform