Added tests for Random, dirty key sequence factory