fix permissions_controller specs
fix randomly failing modal related specs