changed JUnit test cases to use new Assert class instead of the old deprecated one