Ordering of specs handled. Added tests.