Preventing production code execution while running tests