Tests & cleanup for code blocks.