made funcdef a block and added imports to tests