Added test for crash fixed in 5ff9796