add sub command 'test' for rank tests.