fixes to bugs in test and adding a results file