added sanitization
updated tests to use global sails config