create mock of stdClass