Update AngularJSContainerServerApiTest

1. Add more test for the error case.
2. Two bug found, one typo and one inconsistent with server API doc.
3. Fixed a few bugs. (Misuse of ok()... Just check the API...)