Adds a new Performance Test

Also improves older tests to match with the 'develop' tests.
And makes the profiling a little bit more reliable
Updates sortAllChildren() test
two new more perf tests
add missing head
Merge pull request #3519 from minggo/master_perftest_fixes

Master perftest fixes