call disconect on correct instance
added test_run_id to objects returned
added machine.type to group by clause