tests: add test in preparation for #24