added testing method not relying on db connection