Added unit test with very long terms