feat(core): add support for declaring tests as functions. Resolves #235 (#236) (ab4b3c7) Proposed fix for anonymous callback crash (#234) (4807866)