Test generator. Strugling with assertions.