refactor curly test