added findAll middleware + tests