add unit test for logic class
Merge pull request #2 from jaye1944/master

add unit test for logic class