Start implementing some tests for the serializer
Add tests for most of the functions of the serializer
Fix recursion bug