tests: add chai helpers