fix test, register error, DRY up errors
v0.0.10