Added junit tests for testing various parts of program.