Added basic unit testing
refactored createTable to be done in a more 'angular' way
begin work on unit testing for ng