Inline method that doesn't need to exist.
Add missing test to show that profile() throws exceptions

When using an invalid profile name an exception should be raised.