Basic logic test