Added contribution serialiser tests
Refractored serialiser into smaller methods