Fix logic for identifying test classes on Windows

Use File.separator rather than hard-coding the use of ‘/‘

Closes gh-1571