implemented test method to test POST method on client side
test