Moved common tests into shared_examples_for_unit_tests.