Tests for escape function