Removing extraneous test_mode