Checking for function as default, util bugfix
Updating tests, adding example spec output