added test cases and added uP -> C string conversion