Write test_suite
Write test for pattern
Remove unused function