remove repetitive api unit test