Add quoted message function and new tests