Improved set-nth function tests
Improved random function tests
Improved unique-id function tests
Improved angle conversion tests
Improved downward for tests