Fix ajax errors.
Refactoring tests.
Add multiple values test cases.