I also implemented test case for non-NULL hFile but I didn't bother for other flags since I don't know if we even care about those.
We don't care unless there's an app that depends on this. In particular, we don't want to reject potentially invalid flags combination unless there's a clear need.