Tests for registering with errors and for general errors