Tests fail when run with bundle