bring in defaultsTo function tests from master
use updated context in tests
fix issue with which values are being used in the context for defaultsTo