Fixes #686

Extended comparePixelArrayWithPixelScreenArray with tolerance parameter;
adapted tests accordingly