Unit test for image uploader directive