Add coverage test for functions and procedures