Fixed spec duplication in tests.