Modified test handling. Now, if a test.rs file is not found, it use package main source file.