Completed tests for JLayoutFile/JLayoutHelper

# Do not Merge

Complete test set for JLayoutFile and JLayoutHelper class.

Still WIP as 2 tests are waiting for a fix from @phproberto 

A new version of #4753 which disappeared into the abyss.