Fix order of operations on test dependancies