adding first karma tests, adding angular-resource file