tests for some more sophisticated operations