Fixed 'smart tabs' in the app.js and test files