Refactored patient helper tests