Sequential and Cross Compare test

Fixed several minor code bugs and added two new tests, sequential and
cross compare.
As of right now cross compare is not working as intended and is
inconsistent between different images.