Fix wrong debug check and un-comment adding message now we're in a test environment