Added model (scope) and tests

Simple use of $scope with tests