Adding tests to ensure FK serialisation.