change method for resolving test location

This change to the tests fixes them when deploying to devel and prod.