Dilshan hits half-century in Bangladesh Test