Add related tests for the connection factory.

Just round things out slightly.
Expand connection tests with exceptional behaviour.

Start with a GET returning a 404.
Test a PUT that returns a 403 (Forbidden) error.
Test a POST that returns a 401 (Not Authorized) error.
Test an OPTIONS that returns a 500 (Server Error) error.