added some helper functions (term, hex-item) and some tests