Move and Inversion tested

Added move tests and inversion test
Fixed bugs