Removed debug prints
Fix failing tests
Removed useless copies in unittest