fixed for https://github.com/fossology/fossology/issues/31. also update tests for nomos.