Fixed present test on ident. Should be rewritten and extended.