Properly detect test node env