add test and fix regression attempt