added setter for ubuntu, improved validation and tests