Fixed some bugs in mk.tests

Forgot to pull from MINIX in the first commit