Add startVisibleFragment to make sure you can test visible fragments
Clean up duplication
Merge pull request #1179 from seadowg/visible-fragment

Add util for testing visible fragments