Unit tests for dialog history plugin