Numerical modeling of rock mechanics tests in layered media using a finite/discrete element ap-proach