fixed wrong import variable name
better debug output
failing test for issue #9
Fixed #9