Fix issue https://github.com/ocpsoft/prettyfaces/issues/18, with test.
Test to reproduce #147