testing messaging in ionic