Add test for finding Images by path

Functionality was added to be able to find images by their path in the database.
However, when added, it was not tested. It is now tested.

Issue: 16