Avoid error 500 during functional tests