genericize tests here