+testcase for fopen and klogger