add func test in travis with postgres and redis