Exchange implements Serializable.
Added test to test serialization.