added logic test