Updated cmd_test to better handle ports with no staging support