Fixing self.rect.center error and fixing constructor in tests