update Challenge model and model tests to not require test_code value