Test sample refactored.