bump to 1.4.0 and add tests