fixed tests to works with docker api v1.6.