Added tests for update end point and cleaned up endpoint creation mapping