test: add missing "end"