Fixed server cert initialization
Added chain test
Added travis configuration