added tests for addchain