changed the way tests inherit functinos