Adding tests for registrations.

Had to make registration classes public so they're visible to the test
assembly.