Tests: catching some edge cases