Tests: Added unit tests for getNextImage method.
Tests: Fixes for IE.
Cleaning up and documentation.
Tests: Fixed wrong method call in undo tests setUp which does not exactly set up everything.