A test case minimizing the issue with selectDynamic reported by @asujeeth.