updated OT test in keystate api