Fix test descovery to correctly add test dir to path and import modules rather then files
Added checks to make sure test dir is a directory that exists