added flags in test to print only when failed