Use TestEnvironment instead of loading properties on tests

Use TestEnvironment instead of loading properties on tests