added sample unit test + apis