add api request tests

improve api