a few unit tests