added basic function tests