Add tests for reactive function return visibility