Refactor RF tests

Try to minimize random failures by waiting for layout to load