adds tests for imageState with mockito.