Adds test to ensure the console respect previous locals