simulated test case by printing