Implemented tests for LogicServiceImpl.