Added tests for delete api, as well as added client side link validation.