look for keys and clean up AP ftp tests
make the tests work, closes #637