adding fopen to test