Cosmetic cleanup

- some spelling fixes
- unused import removed
- test_create_sha256() renamed to test_create_sha1() accordingly to what it does
- minor redundancy removed by call to get_data_fn()