add tests for secret entity