New constructor, unit tests and introduction of a test image