Add test runner, move register test into test/unit
Updates for v0.10