main test is implemented.