Add test with mock.

 * api.task()
 * api.create_task()
 * api.delete_task()
 * api.create_note()
 * api.delete_category()

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>