add tests for star api