Refactored redundant test