Added logic test