test case output improved