Fixed cmd_open and file_malloc tests