fixed behave as handling test

Fixed the behave-as test.