Return value functionality for Function.defaults() added including tests