learning angular js and write some test with it