test validate with different files and hopefully correct problems about it