fix function reference
added contact model tests