JpaRepository is used and test case is updated.