Added if(BUILD_TESTS) clause around the building of test util library
Added missing argument to forti close()