tests for functions and runtime