Tests: Added unit tests for getNextImage method.
Tests: Added test which check Ctrl + A & Backspace behaviour.