Remove scan annotation and add method to pass directly entities in order to have tests faster