implemented term(); tests for same