Unit Testing/tab class update
1.Added tabtest.js
2.Minor updates to the tab class