fix(deepInherit): only inherit function if it's not an empty object
test(deepInherit): test functions only get deepInherited when necessary