Enhancements to Backstab libraries and added new unit tests