Marked type as serializable
Added alternative test