add test for remain terms