Specd out functional test and use unittest for test framework