Basic tests for hal serializer.