update test
add debugging outputs
quick bugfix