more unit tests for entry api