tests. fixes #4