updated log2code test for correct line numbers and loglevel.