added flags to control which test is performed