use "assert_string_equal" for multiline str asserts

Also, some minor import order refactoring.