Unit tests should run in isolation, and the order of the tests should not matter. Rather than setting a boolean so that the `beforeEach` function runs differently next time, the `form.attr('action', 'http://www.example.com/');` should be run as part of the test. The `LTI(element);` line should also be run in each test, since that is the functionality that is being tested.