Add tests about delegation to the locked stream