Fix an incorrect source set definition.
Add test case for binary serializer and fix some bugs.