Fix mock app to read messages correctly