more small tests and comments for functions