Add test_formats_rsakey_from_pem() test case and test conditions for improperly formatted PEM.
Add test condition to verify trailing whitespace is removed and matches the expected PEM format generated
internally. Public PEMs generated externally (with the expected trailing newline) was not previously considered.