add a test case to check --profile option works