Removed duplication from tests.