Add main method to test_nexus to run tests in standalone mode