use guard for running tests