Fixing tests to know about dev mode