All of this should be working. In fact, I'm running all of it on 5.1.2.
The jailbreak is not deleted on upgrading.
Please provide more details - i.e.: what do you mean by "is not working"? Which error messages do you get? What is in the system log ("showlog" via usbnetwork)?