Added a few tests related to explicitly set layout file resolution.
Minor refactor of unit test class to better simulate real scenarios.