add test for consistency with callback