Added specs for configuration and error paths