fix check for main thread
added object counting tests
added simple test for dotting and brushing
implemented test for boxes
test for sigma value
refactoring
cleanup
cleanup
Merge pull request #650 from lfiaschi/testsCounting

Tests counting