Fix test. Add stub methods in mock.

Add main Makefile. Now is only call Makefile in tests.
Need port tools to makefile.