improved bootstrap test