Added guards that check the existence of mex files used in tests.
Merge pull request #450 from tkoolen/issue-369

Add guards that check the existence of mex files used in tests