working tests with shared context