Allow running just one test from a file and fix general testing bugs