added password encryption to service tests