Fix test commands on BSD

Change-Id: I8d0bdce951b78f379939513398f94193b07f31c2