added test for strict mode error

Declaring functions in weird ways is not allowed in strict mode, like
say, inside if bocks.