How good are recent density functionals for ground and excited states of one-electron systems?