Fixed Testing Errors
Small fixes and Logging and Assertion
Some edit to logging