Throw Error instances, not strings.
Added setProjection, getProjectionRef tests.