* refactor: remove unused code in the function
* test: add unit tests for admission handler
* Revert "refactor: remove unused code in the function"
This reverts commit b8f48dbdbff49a2860efe0257ba62378fc8227b2.
* revert: added again due to incorrectly made test scenario
* test: add unit tests for admission handler