add specs to cover a few edge cases.