add test_entry unique key on test and assignment

an assignment can only have one of each test and thus
only one test_entry per test