Fixed init from Quantity object and added test