Removed unused actions in the messages controller
Cleaned up and created more tests