is( $response->content_type, 'text/html', 'Response Content-Type' );
like( $response->content, qr/CHEEZ/, "contains translated string");
+ok(
+ $response = request(GET 'http://localhost/translate/1'),
+ 'Request for default translation type'
+);
+
+ok( $response->is_success, 'Response Successful 2xx' );
+
+like( $response->content, qr/CHEEZ/, "contains translated string");
+
+ok(
+ $response = request(GET 'http://localhost/translate/100'),
+ 'Request for default translation type on non-existant object'
+);
+
+cmp_ok( $response->code, '==', 404, '404 error returned');
+
+ok(
+ $response = request(GET 'http://localhost/translate/1/to/LOLCAT'),
+ 'Request for specific translation type'
+);
+
+ok( $response->is_success, 'Response Successful 2xx' );
+
+like( $response->content, qr/CHEEZ/, "contains translated string");
+
+ok(
+ $response = request(GET 'http://localhost/translate/1/to/NONEXISTANT'),
+ 'Request for non-existant translation type'
+);
+
+cmp_ok( $response->code, '==', 404, '404 error returned');