Fix memory limitation tests

Two different steps were added to test the effectiveness of the
memory limitation.