Adding spec to test for PR#270 and #333