Add util for testing visible fragments