add spec for bug fixed in #143