updated test to check just for the existence of an object instead of checking if it's a function