will remove the testharness.
will use main for test.