saving tests to agents, structureing objects, radio button repopulation from db