testing coding for Angular JS