Ria class using jasmine testing