fixing tests for http api