Added auth command and tests.