Add logging to test random