refactored SecurityRandomTest class