Added logic tests.