Test setting of agent version, minor code cleanup
add setup test