added tests for nontrivial behavior