added post method to api and extended tests