Added JUnit testClasses

A BrickTest and a GridTest class. Where I've tried some JUnit tests for
these classes.