use -j 2 for travis build
fix #25941
cleanup and new tests
add tests for image & measure repeat