Added tests for move.
Added multiple debug messages and fixed move tests.