reworked tests and also fixed a bug in the image server