Add test case for BlockResult and fix implementation to pass test