Fix tests and version up to 1.4.0