more unit tests for entry api
Fixed a bug.
Merge remote-tracking branch 'origin/back-end-working' into back-end-working