Wrote Test for StateService, Fixed StateService, Deleted outdated Test