new functions for functions module; new unit and system tests