Refactored performance tests to also be runnable as console application