Fixed issue with testSubMain