add test for public api

add test for public api. not for all classes but for the
most important ones

Change-Id: I494f60568c6caafc23754154fe930d9f90a3bde0
11 files changed