moving stuff to test_helper
test case for invalidate_never_repeatable_elements
fixing a bug