Improve test page style.
Adding then to deferred.
Adding serialization tests and fixes.