implement basic function testing