updated unit tests and fixed a small issue in protocol actions