Added test for illegalArgumentException in constructor when tail length
is less than 1