Finish tests; fix one-sided relation update