Added testing code for local environments