This is a bit simplistic. Does your implementation support 10121? If yes, I'd like to see a test. If not, we should complete the code.