Rename test_mode to test_resources