unit tests for ident.c