making tests serializable