Added test for lifecycle-environment paths

"Added test for lifecycle-environment paths"
Merge pull request #1420 from tkolhar/test_cli

Added test for lifecycle-environment paths
Fix a name clash

Rename class attribute `Media.path` to `Media.path_`. This prevents the
attribute from conflicting with the method of the same name.

Fix #1429.