Often those tests will fail due to lack of memory, disk space, or exhausting the stack.
After you ran
Did you also run
before you ran
Often at times, the stack will always get exhausted even with the stack limit raised. However, tests will vary from system to system in which pass and fail. Usually, and often tests will fail although the program itself is fine and compiled correctly, due to the test code not being updated properly with the rest of the sources. It's rather commonplace this happens.
However, to avoid the majority of problems, you should ALWAYS follow the book to the letter, and not take shortcuts.