Fixed tests for version and agent