Fixed a special case where test is a sub-dir of src