added logicTest

-JUnit test for logicTest