Fixed a caching bug in GridStructGen.

The elements in cache were queried wrong, so sometimes they wouldn't be used even if they were the ones to use.
Added a TestRails generator.

This is for debugging purposes only.