Adding JUnit test for blocks.