Cosmos earn a win over Terriers