Fixed small mistakes in Quantity class and implemented tests for
originally unimplemented tests