A status code isn't required to create a test_run, as you have a :before_save hook to set it to NOTSTARTED if it's blank, which you have tested below.