Reordered  some code and fixed assert not executing when switching world
Added junit testing to the project, this tests if certain things in the project are correct when building