Added tests for defaults. Evaluate required function on render.