function length and number checks testing