The engineers are the ones qualified to to engine runs, but was the entire flight deck outside whilst this engine run was performed? If yes, then that is a bit naughty in my opinion. This is because if anything went wrong (like catering truck bangs into aircraft, fault in toilet flush motor causes smoke in cabin etc. - not to mention open access to cockpit with engines running!), the crew would be in wrong place to do anything about it.