test for bug 'object has no method then'