Added calledBefore to tests.