cleaned testGetTriggers() and testGetFunctions() by adding a commonly used function.