added ordering tests and demos