added a few test cases using JUnit for CE1 function