remove expect deprecation