Added transactions array to restored block and notification

Also fixed tests and added more for checking transactions count in response block an notification
We should do the copy only once, before the `if` block.