Add tests for image uploader directive