There are several unit testing frameworks for PL/SQL. Code in the database encapsulates business logic, it gives you unified access from all clients. It can also be orders of magnitude faster. The presentation linked here
https://thehelsinkideclaration.blogspot.co.at/2016/09/noplsq...
proves that with flame graphs for a simple workload done from the app server vs. implemented in PL/SQL.