[CB-4036] - fixed custom engine loading and added test