Added minimal test function for serialization