Unit tests for these cases?