Added test using boost macro to throw maidsafe errors.