More tests for serialize()
Fix lint errors for appframework.js