Corrected an important mistake in '_search()'. Updated test.