fixes a bug in godmode
fixes test cases