Fix #19 and add test with debug environment of symfony