Added test for block permutation, all tests  passing