add almost all tests to images model + few fixes in other models