Add test cases for serializers (issue #15)