refactoring search article tests