Refactor ctcp handler
Rename tests to specs