Reducing the number of messages to test due to heap size space