lib/pb-config: Implement save method for test storage