added a debug file
initial debug files
fixed a test error on ubuntu
fixed unhandled errors in tests
Fixed unhandled errors in tests