updated test. fixes #322