adds a unit test for active_languages option and fixes some linting
issues