Add SSL in production
added a few tests