Adding test for option parsing
Fix, redis.createClient actually crashed due to not handle on error, not correct port
use local lock var to minimize error