added some tests for hoisting