test case - io redirection to file