Add resource for unit-test
Fix string comparison and initialize params object.