Using AbstractImageTest and fixing coding problems