A Morera type theorem forL2 functions in the Heisenberg group