Support for block functions, moved failing/blocks.js to main unit tests