Write and pass test for shuffle method