Fix switch_state test.
Fix dummy api's metric store.
Version 0.1.3.