Fixes #2464 - does sorting of exercises without x_pos and y_pos.
Fixes create_random_video helper for tests.
Fixes node_cache related test failures in nalanda.py