fix naming on connect options and add test for it