Modernize tests

Replace unsafe_ref with unsafe_load in tests
revert `typealias` on `gsl_mode_t`