Fixed tests for version and agent

Please remove Println