Remove hard coded test comparison and use __file__ instead