add tests for star api
Merge pull request #298 from reviewninja/test/star

add tests for star api