Added tests for validateRequest and extra tests for the inverse of some