fixed tests, added log file & updated output parse