Support automatic test registration

To easy the process of creating tests, use AutoTest that registers and
runs all tests.