add testcase for non serializable mock behaviour