refactored test to be less random