Check for illegal inputs in functions take() and drop().
Tests for take() and drop().