Unit tests for hover directive