Use the package AAAPT to run the tests
Decouple the navigation from the command for easier testing.