Added preview command test and more ClientUtilities tests. Fixed issues in the preview command and client utilities found during tests. Refactored a few method names to be more descriptive.