Modification of speed unit test.

- add test of FieldConstant
- use typedef of return type (prepare for add template parameter)