Added tests for Lifecycle Environments via CLI.

Added 25 new CLI tests for Lifecycle Environments. Also fixed the
factory to use 'Library' by default.