Got tests working

Note: One test still fails due to an actual problem with registering
objects.