Unit testing front-image directive