added some more tests around functions