Fix issue with route action not being parsed when set directly. Add tests.