pre-test allow passing non-object to Context constructor