created a bunch of junit tests for testing components
and corrected which contained bugs