Corstorphine Hill murder trial: Accused 'did something bad' 14 January 2014 Last updated at 12:46 A man accused of killing his mother and burying her in a shallow grave told a workmate he had done "something bad," a court has heard. Matthew Hagan, 26, told the High Court in Edinburgh about the conversation with James Dunleavy. The two men had been working together as labourers on the Edinburgh tram project. Mr Dunleavy, who is 40, denies killing his mother Philomena and burying her dismembered body on Corstorphine Hill. Mr Hagan told the court he and Mr Dunleavy were paired together operating jackhammers to smash through concrete. Going away He said Mr Dunleavy, who is also known as Seamus, told him he was going away but would not say why. "He said he had done something he wasn't proud of," he added. He said he had done something bad, something he was ashamed of but he wouldn't reveal to me what it was. Mr Hagan, from Glasgow, gave details of the conversation to detectives after Dunleavy's arrest. He told them Dunleavy's words were "I have done something bad, brother." He added: "I asked him where he was going and he said 'I don't know. It could be years, weeks, months.' Mr Hagan agreed with defence QC that Dunleavy was someone who would "talk a lot of nonsense" and for him to say things which did not make sense was not unusual. Evidence Mr Dunleavy denies battering to death his mother Philomena, 66, of Marino, Dublin between 30 April and 7 May 2013. A second charge accuses him of pretending his mother was unwell and had returned to Ireland. Prosecutors also claim that he vacuumed and washed his flat to remove blood stains and torched a bed and mattress.