Added unit tests for post & put method