add test for active model adapter
fix active model serializing and weird problem with testing