Prim tested and queue methods updated