fix typo, add simple integration test