Unit tests for valid and invalid request types.