Separate tests into four individual ones

The key here is that neither -file nor -math are valgrind clean, but -var and
-ind are.  This way we can check that the local code really is safe without
worrying about linked libraries.