add phpunit test to image model