Added specs for some edge cases.