Nif validator bug solved (issue 8). tests for nif added.