Code tests as I get to know angular.js