Added new getLoader method to tests