fixed issue with specifying which variables could be split and added test