Added ruler tests
Added emails autolinking and improved tests coverage