Re-factoring re-bootstrap test