test on messages factory