Added in serialisation tests

Signed-off-by: royka <samjacobclift@gmail.com>