Fixed Errors
Fixed variable scope for running all tests