Added more tests, some of them with a random element.