update mock to account for prefix usage

Set the prefix explicitly so as not to rely on the application's folder
name
consolidate return early statements