Adding tests and deletes for the state manipulations