Made it a directive instead of a filter
Updated tests