Add test for private block
DRY up tests