Add test-case for type=color
Fixed async complete certified state.
Add test-cases for custom functions.