add comment about function, added tests