basic tests, fixes #7