Added 10 simple functions to as well as tests for these functions to check if the responses are valid before checking anything. If something's wrong, it throws an exception