Fix small memory bug

Also adjust the tests for the fact that Complex is immutable