add test after fopen