removed old conditional syntax
update lib versions
rebuild reference output
exit with 1 on test error
simplified reference output comparison