Final Version. Test cases and Log4j