tests commands to external file