Adding test and upgrading to latest optimist