Rewrite doctest_case_test.py
Add unlock tests for DoctestCase
Rewrite DoctestCase to use Serializable