update api tests with options