Add unit testing for phrases callback manipulation