testSubAtomTypeErrorLengthIsNotInteger

Tests the query

?- sub_atom(banana, 4, n, _, S).

fails on a solver initialized with default built-ins and with an empty theory, producing exception type_error(integer, n).